package models

type SysLearningList struct {
	Model
	BuyerId int `json:"buyer_id" gorm:"type:int(10);comment:购买学员ID"`
	CourseId int    `json:"course_id" gorm:"int(10);comment:课程ID"`
	Subject  string `json:"subject" gorm:"varchar(10);comment:学习所属科目"`
	Name     string `json:"name" gorm:"varchar(20);comment:学习名称"`
	Cover    string `json:"cover" gorm:"varchar(255);comment:学习封面"`
	Status   int    `json:"status" gorm:"tinyint(2);default:-1;comment:学习状态 -1-未开始 1-学习中 2-已完成"`
	ModelTime
}

func (SysLearningList) TableName() string {
	return "sys_learning_list"
}
